package com.twu.biblioteca.ui;

import com.twu.biblioteca.model.Item;
import com.twu.biblioteca.model.Movie;

import java.util.Iterator;
import java.util.List;

/**
 * Created by madhu on 1/5/14.
 */
public class MovieView extends ItemView {

    public MovieView() { }

    public void displayListOfMoviesInStack(List<Item> moviesInStack) {
        Iterator iterator = moviesInStack.iterator();
        System.out.println("\nLIST OF MOVIES : \n");
        while(iterator.hasNext()) {
            Movie item = (Movie) iterator.next();
            System.out.println("Name : "+item.getName());
            System.out.println("Year : "+item.getYear());
            System.out.println("Director : "+item.getDirector());
            System.out.println("Rating : "+item.getRating() + "\n");
        }
        System.out.println();
    }

}
